package com.lanyun.aicorrectassistant.basic.entity;

import java.util.Date;
import java.io.Serializable;

/**
 * 用户API密钥存储表(UserApiKey)实体类
 *
 * @author Jqchan
 * @since 2025-05-29 23:26:38
 */
public class UserApiKey implements Serializable {
    private static final long serialVersionUID = 984118390226967719L;
    
    /**
     * Key唯一ID（主键）
     */
    private Integer id;
    
    /**
     * 用户唯一标识（UUID格式）
     */
    private String userId;
    
    /**
     * 关联的模型ID（外键）
     */
    private Integer modelId;
    
    /**
     * 加密存储的API Key（需AES加密）
     */
    private String apiKey;
    
    /**
     * 启用状态：1-启用，0-禁用
     */
    private Integer isActive;
    
    /**
     * 创建时间
     */
    private Date createTime;
    
    /**
     * 创建人
     */
    private String createBy;
    
    /**
     * 修改人
     */
    private String updateBy;
    
    /**
     * 修改时间
     */
    private Date updateTime;
    
    /**
     * 是否删除 1-未删除/0-已删除
     */
    private Integer isDeleted;
    


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public Integer getModelId() {
        return modelId;
    }

    public void setModelId(Integer modelId) {
        this.modelId = modelId;
    }

    public String getApiKey() {
        return apiKey;
    }

    public void setApiKey(String apiKey) {
        this.apiKey = apiKey;
    }

    public Integer getIsActive() {
        return isActive;
    }

    public void setIsActive(Integer isActive) {
        this.isActive = isActive;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public String getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(String updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }
}
